package br.great.functionalCore;
/**
* PhotoMap
* Copyright (c) 2007-2008 STEAMER - LIG, All rights reserved.
*/

/**
 * @author Developpement of PhotoMap
 */
public class ChangeFirstLetter {

/** method description
* @param var signification
* @exception exception class name
* @return return_value return signification
* @see package.class#member label
*/
    public String changeFirstLetter(String word){
        StringBuffer sb = new StringBuffer(word);
        if(sb.charAt(0)>='a'||sb.charAt(0)<='z'){
            if(Character.isLowerCase(sb.charAt(0))){
                String s = Character.toUpperCase(sb.charAt(0))+"";
                sb.replace(0, 1, s);
            }
        }
        return sb.toString();
    }
    
    public static void main(String[] args){
         ChangeFirstLetter cfl = new ChangeFirstLetter();
         String s = cfl.changeFirstLetter("abc");
//System.out.println(s);
    }
}
